package singleton.type1;

/**
 * 饿汉式（静态常量）
 */
public class Singleton {
    private static final Singleton instance = new Singleton();

    private Singleton() {
    }

    public static Singleton getInstance() {
        return instance;
    }
}
